/**
 * $Id: IPersonnelDao.java 4 2011-09-07 01:42:46Z adriftrock@gmail.com $
 */

package com.swehr.server.daos;

import com.swehr.server.models.Personnel;

import java.util.List;

/**
 * @author Rock Huang
 * @version 0.1
 */
public interface IPersonnelDao {

    List<Personnel> find();

    Personnel findById(int psnId);

    boolean delete(int psnId);

    boolean batchSave(List<Personnel> created) throws Exception;

    boolean batchUpdate(List<Personnel> updated);

    boolean batchRemove(String[] removed);

    List<Personnel> findByOrg(String oid);

    List<Personnel> findByPos(String pid);
}
